package cn.huiyunche.base.service.enums;

public enum StatusCategoryEnum {

    PROCESS(1, "订单流程状态"),
    PAY(2, "支付状态");

    private final int value;
    private final String text;

    StatusCategoryEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static StatusCategoryEnum getByValue(int value) {
        for (StatusCategoryEnum temp : StatusCategoryEnum.values()) {
            if (value == temp.getValue()) {
                return temp;
            }
        }
        return null;
    }
}
